{# Modal for duplicate #}
<div class='modal fade' id='duplicateModal' tabindex='-1' role='dialog' aria-labelledby='duplicateModalLabel'>
  <div class='modal-dialog' role='document'>
    <div class='modal-content'>
      <div class='modal-header'>
        <h5 class='modal-title' id='duplicateModalLabel'>{{ 'Duplicate entry'|trans }}</h5>
        <button type='button' class='close' data-dismiss='modal' aria-label='{{ 'Close'|trans }}'>
          <span aria-hidden='true'>&times;</span>
        </button>
      </div>
      <div class='modal-body' data-wait='{{ 'Please wait…'|trans }}'>
        <p>{{ 'Duplicating an entry will create a new entry with the same attributes.'|trans }}</p>
        <div class='d-flex justify-content-between'>
          <label for='duplicateKeepFilesSelect' class='col-form-label'>{{ 'Copy attached files'|trans }}</label>
          <label class='switch ucp-align'>
            <input type='checkbox' autocomplete='off' id='duplicateKeepFilesSelect'>
            <span class='slider'></span>
          </label>
        </div>

      {% if Entity.entityType.value == 'experiments' or Entity.entityType.value == 'items' %}
        <div class='d-flex justify-content-between'>
          <label for='duplicateLinkToOriginal' class='col-form-label'>{{ 'Link to original entry'|trans }}</label>
          <label class='switch ucp-align'>
            <input type='checkbox' autocomplete='off' id='duplicateLinkToOriginal' checked>
            <span class='slider'></span>
          </label>
        </div>
      {% endif %}

      </div>
      <div class='modal-footer'>
        <button type='button' class='btn btn-ghost' data-dismiss='modal'>{{ 'Cancel'|trans }}</button>
        <button type='button' data-action='duplicate' data-dismiss='modal' class='btn btn-primary'>{{ 'Duplicate'|trans }}</button>
      </div>
    </div>
  </div>
</div>
